<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>HelloWorld_React</title>
</head>
<body>
  <div id="test"></div>
  <script type="text/javascript" src="../js/react.development.js"></script>
  <script type="text/javascript" src="../js/react-dom.development.js"></script>
  <script type="text/javascript">
    const hello = 'Hello React'
    const vDom = React.createElement('h1', {id: 'myId'}, hello.toUpperCase())
    // 渲染虚拟DOM到页面真实DOM容器中
    ReactDOM.render(vDom, document.getElementById('test'))
  </script>
</body>
</html>
